package com.hy.hongying.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_oss")
public class Oss {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String bucket;
    private Integer type;
    private String preurl;
    private Date etime;
    private Date ctime;
    private String objname;
    public Oss(String bucket, Integer type, String preurl, Date etime, Date ctime, String objname) {
        this.bucket = bucket;
        this.type = type;
        this.preurl = preurl;
        this.etime = etime;
        this.ctime = ctime;
        this.objname = objname;
    }
}
